<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--适口配置-->
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <!--引入bootstrap中的css文件-->
    <link rel="stylesheet" href="libs/bootstrap/css/bootstrap.css">
    <!--引入less文件-->
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/common_section.css">
    <title>Title</title>
    <!-- 配置的模板需要注意:1、type必须是text/html  2、需要配置一个id -->
    <script type='text/html' id='menu-template'>
        <div class="row">
            {{each result as value i}}
                <div class="col-xs-3">
                    <a href="{{value.titlehref}}">
                        {{#value.img}}
                        <p>{{value.name}}</p>
                    </a>
                </div>
            {{/each}}
        </div>
    </script>
    <script type='text/html' id='product-list-template'>
        {{each result as value i}}
        <div class="media">
            <div class="media-left">
                <a href="#">
                   {{#value.productImg2}}
                </a>
            </div>
            <div class="media-body">
                <div class="normal-info">
                    <span class="product-name">{{value.productName}}</span>
                    <span class="product-price">{{value.productPinkage}}</span>
                </div>
                <div class="other-info">
                    <span class="from-time">{{value.productFrom}} | {{value.productTime}}</span>
                    <span class="comment">{{value.productComCount}}</span>
                </div>
            </div>
        </div>
        {{/each}}
    </script>
</head>
<body>
<header id="header"></header>
<section id="search"></section>
<section id="menu"></section>
<section id="recommend">
    <div class="recommend-title">
        <a href="#">超值折扣推荐</a>
    </div>
    <div class="recommend-list">

    </div>
    <div class="recommend-more">
        <a href="#">更多优惠信息 >></a>
    </div>
    <div class="recommend-title">
        <a href="#">品牌排行</a>
    </div>
</section>
<footer id="footer"></footer>
</body>
<!--引入jquery文件-->
<script type="text/javascript" src='libs/jquery/jquery.js'></script>
<!--引入bootstrap中的js-->
<script type="text/javascript" src='libs/bootstrap/js/bootstrap.js'></script>
<!--引入魔板的js文件-->
<script type="text/javascript" src='libs/template/template.js'></script>
<!--引入这个界面的js-->
<script type="text/javascript" src='js/common_section.js'></script>
<script type="text/javascript" src='js/index.js'></script>
</html>